;; -*- scheme -*-
; object definitions ...
(define-object Object
  (in-module "Valhala")
  (parent "GObject")
  (c-name "ValhalaObject")
  (gtype-id "VALHALA_TYPE_OBJECT")
)

;; Enumerations and flags ...


;; From valhala.h

(define-function valhala_hello2
  (c-name "valhala_hello2")
  (return-type "char*")
)

(define-function valhala_object_get_type
  (c-name "valhala_object_get_type")
  (return-type "GType")
)

(define-method hello
  (of-object "ValhalaObject")
  (c-name "valhala_object_hello")
  (return-type "char*")
)

(define-function valhala_object_new
  (c-name "valhala_object_new")
  (is-constructor-of "ValhalaObject")
  (return-type "ValhalaObject*")
)

(define-function valhala_object_construct
  (c-name "valhala_object_construct")
  (return-type "ValhalaObject*")
  (parameters
    '("GType" "object_type")
  )
)


